
import { registerPermissionsDefinition } from '@/modules';
/**
 * 权限代码常量
 */
export default {
  SuperAdmin: 'SuperAdmin',
  ...registerPermissionsDefinition(),
  Person: {
    CreateUser: () => '创建用户',
    UpdateUser: () => '更新用户',
    PermissionAssign: () => '用户权限分配',
    PasswordReset: () => '用户账号密码重置',
    DeleteUser: () => '删除用户',
  },
  LoginAuditLogs: {
    Details: () => '查看详情',
    BlackWhitelistManager: () => '黑白名单管理',
  },
  Role: {
    CreateRole: () => '创建角色',
    UpdateRole: () => '更新角色',
    DeleteRole: () => '删除角色',
    ConfigureRole: () => '配置角色',
    AuthorizeRole: () => '授权角色'
  },
  Organization: {
    CreateOrg: () => '创建机构',
    UpdateOrg: () => '更新机构',
    DeleteOrg: () => '删除机构',
    AssignOrgPerson: () => '分配人员',
    AssignOrgRole: () => '分配角色'
  },
  Dictionary: {
    CreateCategory: () => '添加类别',
    UpdateCategory: () => '编辑类别',
    DeleteCategory: () => '删除类别',
    CreateDictionary: () => '创建字典',
    UpdateDictionary: () => '编辑字典',
    DeleteDictionary: () => '删除字典',
  },
  Crontab: {
    CreateCrontab: () => '添加定时任务',
    UpdateCrontab: () => '编辑定时任务',
    DeleteCrontab: () => '删除定时任务',
    SwitchCrontabState: () => "切换定时任务状态"
  },
  SiteSettings: {
    BasicInfoSettings: () => '基本信息',
    SafeSettings: () => '安全设置',
    OtherSettings: () => '其他'
  }
}
